package study2018._0104;

public class Demo5 {
	public static void main(String[] args) {
		String aString = "2010-9-2";
		String[] strs = aString.split("-");
		if (strs[1].length() == 1) {
			strs[1] = "0" + strs[2];
		}
		if (strs[2].length() == 1) {
			strs[2] = "0" + strs[2];
		}
	}
}
